dnl Process this file with autoconf to produce a configure script.
AC_INIT(xgdipc.c)

AC_CONFIG_HEADER(config.h)

VERSION=0.1


AC_SUBST(VERSION)

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB

AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(unistd.h)

AM_PATH_GTK(1.0.2,
            [LIBS="$LIBS $GTK_LIBS"
            CFLAGS="$CFLAGS $GTK_CFLAGS"],
            AC_MSG_ERROR(Cannot find GTK+: Is gtk-config in executable path?))


AC_CHECK_LIB(crypt, crypt)

dnl Checks for library functions.
AC_CHECK_FUNCS(socket)

AC_OUTPUT(Makefile)
